//Author:       Miguel Dominguez & Heath Cazeau
//Date:         3/9/2011
//Class:        Software Engineering
//Project:      Jaz Interpreter
//File:         Instruction.cpp

#include <iostream>
#include <string>
#include "Instruction.h"

using namespace std;
//CONSTRUCTOR
Instruction::Instruction()
{
    nextInstruction = NULL;
}

Instruction::Instruction(string k, string a)
{
    keyword = k;
    argument = a;
    nextInstruction = NULL;
}

//Returns keyword
string Instruction::getKeyword()
{
    return keyword;
}

//Returns argument
string Instruction::getArgument()
{
    return argument;
}

//Return pointer to next instruction
Instruction* Instruction::getNextInstruction()
{
    return nextInstruction;
}

//Sets keyword
void Instruction::setKeyword(string str)
{
    argument = str;
}

//Sets argument
void Instruction::setArgument(string str)
{
    argument = str;
}

//Sets nextInstruction
void Instruction::setNextInstruction(Instruction* i)
{
    nextInstruction = i;
}